home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat4 / proto.z / proto
Encoding:
Text File  |  2002-10-03  |  4.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. PPPPRRRROOOOTTTTOOOO((((4444))))                                                              PPPPRRRROOOOTTTTOOOO((((4444))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      proto - prototype job file for at
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////lllliiiibbbb////ccccrrrroooonnnn////....pppprrrroooottttoooo
  13.  
  14.      ////uuuussssrrrr////lllliiiibbbb////ccccrrrroooonnnn////....pppprrrroooottttoooo...._q_u_e_u_e
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      When a job is submitted to _a_t(1) or _b_a_t_c_h(1), the job is constructed as a
  18.      shell script.  First, a prologue is constructed, consisting of:
  19.  
  20.      +o  A header whether the job is an _a_t job or a _b_a_t_c_h job (actually, _a_t
  21.         jobs submitted to all queues other than queue aaaa, not just to the batch
  22.         queue bbbb, are listed as _b_a_t_c_h jobs); the header will be
  23.  
  24.           :::: aaaatttt jjjjoooobbbb
  25.  
  26.      for an _a_t job, and
  27.  
  28.           :::: bbbbaaaattttcccchhhh jjjjoooobbbb
  29.  
  30.      for a _b_a_t_c_h job.
  31.  
  32.      +o    A set of Bourne shell commands to make the environment (see
  33.           _e_n_v_i_r_o_n(5)) for the _a_t job the same as the current environment;
  34.  
  35.      +o    A command to run the user's shell (as specified by the SHELL
  36.           environment variable) with the rest of the job file as input.
  37.  
  38.      _A_t then reads a "prototype file," and constructs the rest of the job file
  39.      from it.
  40.  
  41.      Text from the prototype file is copied to the job file, except for
  42.      special "variables" that are replaced by other text:
  43.  
  44.           $$$$dddd   is replaced by the current working directory
  45.           $$$$llll   is replaced by the current file size limit (see _u_l_i_m_i_t(2))
  46.           $$$$mmmm   is replaced by the current umask (see _u_m_a_s_k(2))
  47.           $$$$tttt   is replaced by the time at which the job should be run,
  48.                expressed as seconds since January 1, 1970, 00:00 Greenwich
  49.                Mean Time, preceded by a colon
  50.           $$$$<<<<   is replaced by text read by _a_t from the standard input (that
  51.                is, the commands provided to _a_t to be run in the job)
  52.  
  53.      If the job is submitted in queue _q_u_e_u_e, _a_t uses the file
  54.      ////uuuussssrrrr////lllliiiibbbb////ccccrrrroooonnnn////....pppprrrroooottttoooo...._q_u_e_u_e as the prototype file if it exists, otherwise
  55.      it will use the file ////uuuussssrrrr////lllliiiibbbb////ccccrrrroooonnnn////....pppprrrroooottttoooo.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. PPPPRRRROOOOTTTTOOOO((((4444))))                                                              PPPPRRRROOOOTTTTOOOO((((4444))))
  71.  
  72.  
  73.  
  74. EXAMPLES
  75.      The standard ....pppprrrroooottttoooo file supplied is:
  76.  
  77.           ####iiiiddddeeeennnntttt    """"@@@@((((####))))aaaaddddmmmm::::....pppprrrroooottttoooo     1111....2222""""
  78.           ccccdddd $$$$dddd
  79.           uuuulllliiiimmmmiiiitttt $$$$llll
  80.           uuuummmmaaaasssskkkk $$$$mmmm
  81.           $$$$<<<<
  82.  
  83.      which causes commands to change the current directory in the job to the
  84.      current directory at the time _a_t was run, to change the file size limit
  85.      in the job to the file size limit at the time _a_t was run, and to change
  86.      the umask in the job to the umask at the time _a_t was run, to be inserted
  87.      before the commands in the job.
  88.  
  89. FFFFIIIILLLLEEEESSSS
  90.      ////uuuussssrrrr////lllliiiibbbb////ccccrrrroooonnnn////....pppprrrroooottttoooo
  91.      ////uuuussssrrrr////lllliiiibbbb////ccccrrrroooonnnn////....pppprrrroooottttoooo...._q_u_e_u_e
  92.  
  93. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  94.      _a_t(1)
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.